import 'package:buy_flutter/router/router_handers.dart';
import 'package:fluro/fluro.dart';

class Routes {
  static String welcome = "/splash/view/splash_view";
  static String home = "/main/view/main_view";
  static String login = "/login/view/login";
  static String loginSmsCode = "/login/view/login_sms_code";
  static String testBloc = "/test_bloc";

  //========================原生界面地址=========================
  //注意需要与原生开发沟通，制定界面名称
  static String groupDetail = "groupDetail";
  static String regist = "regist";
  static String h5Page = "h5Page";
  static String apmApp = "apmApp";

  static void configRoutes(FluroRouter router) {
    router.define(welcome, handler: RouterHandlers.splashHanlder);
    router.define(home, handler: RouterHandlers.homeHandler);
    router.define(login, handler: RouterHandlers.loginHandler);
    router.define(loginSmsCode, handler: RouterHandlers.loginSmsCode);
    router.notFoundHandler = RouterHandlers.emptyHandler;
  }
}
